package com.industrial.premu.service.impl;

import java.util.List;
import com.industrial.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.industrial.premu.mapper.PreMuStandardIndustryInfoMapper;
import com.industrial.premu.domain.PreMuStandardIndustryInfo;
import com.industrial.premu.service.IPreMuStandardIndustryInfoService;

/**
 * 行业信息Service业务层处理
 * 
 * @author Zhou_S
 * @date 2024-02-01
 */
@Service
public class PreMuStandardIndustryInfoServiceImpl implements IPreMuStandardIndustryInfoService 
{
    @Autowired
    private PreMuStandardIndustryInfoMapper preMuStandardIndustryInfoMapper;

    /**
     * 查询行业信息
     * 
     * @param ID 行业信息主键
     * @return 行业信息
     */
    @Override
    public PreMuStandardIndustryInfo selectPreMuStandardIndustryInfoByID(String ID)
    {
        return preMuStandardIndustryInfoMapper.selectPreMuStandardIndustryInfoByID(ID);
    }

    /**
     * 查询行业信息列表
     * 
     * @param preMuStandardIndustryInfo 行业信息
     * @return 行业信息
     */
    @Override
    public List<PreMuStandardIndustryInfo> selectPreMuStandardIndustryInfoList(PreMuStandardIndustryInfo preMuStandardIndustryInfo)
    {
        return preMuStandardIndustryInfoMapper.selectPreMuStandardIndustryInfoList(preMuStandardIndustryInfo);
    }

    /**
     * 新增行业信息
     * 
     * @param preMuStandardIndustryInfo 行业信息
     * @return 结果
     */
    @Override
    public int insertPreMuStandardIndustryInfo(PreMuStandardIndustryInfo preMuStandardIndustryInfo)
    {
        preMuStandardIndustryInfo.setCreateTime(DateUtils.getNowDate());
        return preMuStandardIndustryInfoMapper.insertPreMuStandardIndustryInfo(preMuStandardIndustryInfo);
    }

    /**
     * 修改行业信息
     * 
     * @param preMuStandardIndustryInfo 行业信息
     * @return 结果
     */
    @Override
    public int updatePreMuStandardIndustryInfo(PreMuStandardIndustryInfo preMuStandardIndustryInfo)
    {
        preMuStandardIndustryInfo.setUpdateTime(DateUtils.getNowDate());
        return preMuStandardIndustryInfoMapper.updatePreMuStandardIndustryInfo(preMuStandardIndustryInfo);
    }

    /**
     * 批量删除行业信息
     * 
     * @param IDs 需要删除的行业信息主键
     * @return 结果
     */
    @Override
    public int deletePreMuStandardIndustryInfoByIDs(String[] IDs)
    {
        return preMuStandardIndustryInfoMapper.deletePreMuStandardIndustryInfoByIDs(IDs);
    }

    /**
     * 删除行业信息信息
     * 
     * @param ID 行业信息主键
     * @return 结果
     */
    @Override
    public int deletePreMuStandardIndustryInfoByID(String ID)
    {
        return preMuStandardIndustryInfoMapper.deletePreMuStandardIndustryInfoByID(ID);
    }
}
